package me.qi.kancha.dto.enums;

import me.qi.kancha.dto.enums.base.BaseEnum;

/**
 * @author sun
 * @date 2022/8/21 12:55
 * @modified By：
 */
public enum UserStatus implements BaseEnum<Integer> {

//    (1=已激活，2=已禁用，4=未激活，5=退出企业)
    ACTIVATE(1, "已激活")
    ,DISABLE(2, "已禁用")
    ,UN_ACTIVATE(4, "未激活")
    ,EXIT(5, "退出企业")
    ;

    private int value;
    private String desc;

    UserStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    @Override
    public String toString() {
        return String.format("%s:%s",super.toString(), this.desc);
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
